﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Sockets;
using System.Net;

class Program
{
    static void Main(string[] args)
    {
        ServerManager.Instance();

        Console.ReadLine();
    }
}

 
//class Program
//{
//    static TcpListener listener;
//    static void Main(string[] args)
//    {
//        IPAddress address = IPAddress.Parse("192.168.99.156");
//        int port = 8500;
//        listener = new TcpListener(address, port);
//        listener.Start();
//        Console.WriteLine("开始侦听");
//        listener.BeginAcceptTcpClient(OnConnet, null);
//        Console.ReadLine();
//    }
//    static void OnConnet(IAsyncResult result)
//    {
//        TcpClient client = listener.EndAcceptTcpClient(result);
//        Console.WriteLine("连接成功");
//        //接收到客户端后，交给RemoteCient去处理
//        RemoteClient remote = new RemoteClient(client);
//        listener.BeginAcceptTcpClient(OnConnet, null);
//    }
//}